package com.aishua.fire.jpa;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.aishua.fire.jpa.entity.PermPermteam;
import com.aishua.fire.jpa.entity.PermPermteamId;

public interface PermPermteamDao extends JpaRepository<PermPermteam, PermPermteamId>,JpaSpecificationExecutor<PermPermteam>{

	@Query(value="select t from PermPermteam t where t.permpermteamId.permteamId = ?1 and t.permpermteamId.permId = ?2 ")
	PermPermteam findByUnionId(long permteamId, long permId);

}
